<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const arr = [
      {
        name: 'aaa',
        str1: '阿松'
      },
      {
        name: 'ddd',
        str1: '克隆'
      },
      {
        name: 'aaa',
        str1: '阿松'
      },
      {
        name: 'ddd',
        str1: '克隆'
      }
    ]
    // 把name属性相同的对象合并，最终得到一个数组
    const list = []
    // 遍历数组
    arr.forEach()
  </script>
</html>
